:Variables 
REM these variables are used in multiple batches
set working_dir=%~dp0
set wim_dest=%systemdrive%\Images\%arch-type%
set waik=%programfiles%\Windows AIK\Tools
set MOUNTPATH="%wim_dest%\mount"
set image_path=%systemdrive%\Images
set drivers_PE=c:\images\drivers
set choice_text=Please select a choice: 

:start
cd %working_dir%

:header
CALL header.cmd
CALL notice.cmd
if %notice%==2 goto :end
GOTO :Main_Menu

:Main_Menu
ECHO.
ECHO -------------------------------------
ECHO              Main Menu
ECHO -------------------------------------
ECHO.
ECHO 1. Make Mount Directory
ECHO 2. Mount Image
ECHO 3. Install Packages (WinPE and Hotfixes)
ECHO 4. Inject Drivers into WIM index
ECHO 5. Add Extra Software (WinPE Only)
ECHO 6. Unmount Image
ECHO 7. Make ISO (WinPE Only)
ECHO 8. Help/FAQ
ECHO Q. Quit
ECHO.

REM ========== Choice Logic ============
choice /c:12345678qr /n /m "%choice_text%"
if errorlevel 10 goto :refresh
if errorlevel 9 goto :quit
if errorlevel 8 goto :help
if errorlevel 7 goto :iso
if errorlevel 6 goto :unmount
if errorlevel 5 goto :additions
if errorlevel 4 goto :drivers
if errorlevel 3 goto :packages
if errorlevel 2 goto :mount
if errorlevel 1 goto :make_dir


:make_dir
"1-MakePE Directory.cmd"

:mount
2-Mount.cmd

:packages
3-Packages.cmd

:drivers
4-Drivers.cmd

:additions
5-Additions.cmd

:unmount
6-Unmount.cmd

:iso
7-MakeISO.cmd

:help
REM Here we will have a link to a help .txt file, or link to online resource
start help.txt
goto :header

:Refresh
setup.cmd

:quit
exit